/*
 * @Author: rock
 * @Date: 2025-04-17 12:04:06
 * @LastEditors: rock 
 * @LastEditTime: 2025-04-17 16:18:30
 * @FilePath: /004epoll/src/errstr.cpp
 * @Description:
 *
 * Copyright (c) 2025 by rock, All Rights Reserved.
 */

#include "errstr.h"

/**
 * @Author: rock
 * @description: 对错误信息进行格式化输出
 * @param :[ string str ]-> 输出的错误信息
 * @return :[ ]
 */
void err_str_out_(std::string str)
{
    std::string strouthead = "----------"; // 错误信息前面修饰
    std::string strouttail = "----------"; // 错误信息后面修饰
    std::string strout = strouthead + str + strouttail;
    perror(strout.c_str());
}
